package com.yuandian.management.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuandian.api.management.entity.ConfKeyword;
import com.yuandian.bpm.common.data.datascope.BpmBaseMapper;
import com.yuandian.management.vo.BusinessServerResourceParams;
import com.yuandian.management.vo.SegmentRelationByCodeVo;
import com.yuandian.management.vo.SysBusiRelationByCodeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * 识别关键字表-Mapper接口
 * @author zfsn
 * @date 2023-3-27
 */
@Mapper
public interface ConfKeywordMapper extends BpmBaseMapper<ConfKeyword> {

	/**
	 * 分页查询
	 *
	 * @param confKeyword 筛选条件
	 * @return 通用返回对象
	 */
	Page<ConfKeyword> listPage(Page<ConfKeyword> confKeywordPage, @Param("params") ConfKeyword confKeyword);

	/**
	 * 通过资源编码查询
	 * @param resourceCodeList
	 * @return
	 */
	List<ConfKeyword> selectByResourceCodes(@Param("list") Collection<String> resourceCodeList);

    Page<SysBusiRelationByCodeVo> querySysBusiRelationByResourceCode(Page<SysBusiRelationByCodeVo> objectPage,@Param("params") BusinessServerResourceParams resourceParams);

	Page<SegmentRelationByCodeVo> querySegmentRelationByResourceCode(Page<SegmentRelationByCodeVo> objectPage, @Param("params") BusinessServerResourceParams params);
}